'use strict';

const db = uniCloud.database()
exports.main = async (event, context) => {
	let {relateUuid, wordBankId} = event;
	// 查询背单词情况
	const res = await db.collection('memorization').where({
		relateUuid,
		wordBankId
	}).get();
	
	return res.data[0].studyedWords;
};
